package com.mall.pay.dto;

import com.mall.commons.result.AbstractRequest;
import com.mall.pay.constants.PayRetCode;
import lombok.Data;


@Data
public class SelectByIdRequest extends AbstractRequest {

    private static final long serialVersionUID = -5981911909480544900L;

    Integer id;

    @Override
    public void requestCheck() {
        if (id == null) {
            throw  new RuntimeException(PayRetCode.PARAM_IS_NULL.getCode());
        }
    }
}
